package com.avalon.erp.sys.addon.base.service;

import com.avalon.core.field.Field;
import com.avalon.core.field.Fields;
import com.avalon.core.model.SelectionHashMap;
import com.avalon.core.service.AbstractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class ActionViewService extends AbstractService {
    @Override
    public String getServiceName() {
        return "base.action.window.view";
    }

    private final Field label = Fields.createString("名称");
    private final Field serviceName = Fields.createString("模型名称");
    private final Field viewMode = Fields.createSelection("类型", new SelectionHashMap() {{
        put("list", "列表");
        put("form", "表单");
        put("search", "查找");
        put("kanban", "看板");
    }});
    private final Field arch = Fields.createText("xml");


}
